package exam.business.service;

import java.util.List;

import exam.common.constant.ResultPort;
import exam.common.key.KeyExamination;
import exam.model.dao.TExaminationDAO;
import exam.model.entity.TExaminationEntity;
import exam.system.business.AbstractService;
import exam.system.business.BusinessServiceInfo;
/**
 * <p>ExaminationGetListService</p>
 * <br>
 * <p>Xu ly yeu cau lay danh sach de thi</p>
 * 
 * @author Phong
 * @version (create: 20/5/2012)
 */
public class ExaminationGetListService extends AbstractService {
	// tExaminationDAO
	private TExaminationDAO tExaminationDAO = new TExaminationDAO();
	@Override
	public String executeService(BusinessServiceInfo serviceInfo)
			throws Exception {
		// Goi phuong thuc lay danh sach de thi
		List<TExaminationEntity> tExaminationEntityList = tExaminationDAO.selectListExamination();
		// put tExaminationEntityList vao serviceInfo
		serviceInfo.put(KeyExamination.T_EXAMINATION_ENTITY_LIST, tExaminationEntityList);
		return ResultPort.SUCCESS;
	}

}
